package cn.yh.action;

import java.util.List;

import cn.yh.biz.AdminBiz;
import cn.yh.model.Admin;

public class AdminSearchAll extends BaseAction{
	
	public String execute(){
		AdminBiz ab = new AdminBiz();
		List<Admin> list = ab.searchAll();
		if(list.size()>0){
			getSession().setAttribute("list", list);
			return "success";
		}
		return "fail";
	}
	
}
